﻿#include "WRPopupControl.h"

//初始化弹出控件。
WRPopupControl::WRPopupControl()
{
    //add code here
}

//当焦点离开后引发此事件。
void WRPopupControl::focusOutEvent(QFocusEvent *e)
{
    hide();
    QFrame::focusOutEvent(e);
}

//隐藏事件。
void WRPopupControl::hideEvent(QHideEvent *e)
{
    QFrame::hideEvent(e);
    emit closed();
}
